home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
p_man
/
cat3
/
Xm
/
XmSetColorCalculation.z
/
XmSetColorCalculation
Wrap
Text File
|
1998-10-30
|
6KB
|
133 lines
XXXXmmmmSSSSeeeettttCCCCoooolllloooorrrrCCCCaaaallllccccuuuullllaaaattttiiiioooonnnn((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmSSSSeeeettttCCCCoooolllloooorrrrCCCCaaaallllccccuuuullllaaaattttiiiioooonnnn((((3333XXXX))))
NNNNAAAAMMMMEEEE
XXXXmmmmSSSSeeeettttCCCCoooolllloooorrrrCCCCaaaallllccccuuuullllaaaattttiiiioooonnnn - A function to set the procedure used
for default color calculation
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
#include <Xm/Xm.h>
XXXXmmmmCCCCoooolllloooorrrrPPPPrrrroooocccc XXXXmmmmSSSSeeeettttCCCCoooolllloooorrrrCCCCaaaallllccccuuuullllaaaattttiiiioooonnnn(
XXXXmmmmCCCCoooolllloooorrrrPPPPrrrroooocccc ccccoooolllloooorrrr____pppprrrroooocccc);
VVVVEEEERRRRSSSSIIIIOOOONNNN
This page documents Motif 2.1.
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
XXXXmmmmSSSSeeeettttCCCCoooolllloooorrrrCCCCaaaallllccccuuuullllaaaattttiiiioooonnnn sets the procedure to calculate
default colors. This procedure is used to calculate the
foreground, top shadow, bottom shadow, and select colors on
the basis of a given background color. If called with an
argument of NULL, it restores the default procedure used to
calculate colors.
_c_o_l_o_r__p_r_o_c
Specifies the procedure to use for color
calculation.
Following is a description of the XXXXmmmmCCCCoooolllloooorrrrPPPPrrrroooocccc type used by
XXXXmmmmSSSSeeeettttCCCCoooolllloooorrrrCCCCaaaallllccccuuuullllaaaattttiiiioooonnnn:
void (*_c_o_l_o_r__p_r_o_c) (_b_a_c_k_g_r_o_u_n_d__c_o_l_o_r, _f_o_r_e_g_r_o_u_n_d__c_o_l_o_r, _s_e_l_e_c_t__c_o_l_o_r, _t_o_p__s_h_a_d_o_w__c_o_l_o_r,
_b_o_t_t_o_m__s_h_a_d_o_w__c_o_l_o_r)
XColor *_b_a_c_k_g_r_o_u_n_d__c_o_l_o_r;
XColor *_f_o_r_e_g_r_o_u_n_d__c_o_l_o_r;
XColor *_s_e_l_e_c_t__c_o_l_o_r;
XColor *_t_o_p__s_h_a_d_o_w__c_o_l_o_r;
XColor *_b_o_t_t_o_m__s_h_a_d_o_w__c_o_l_o_r;
(vvvvooooiiiidddd)
Specifies the procedure used to calculate default colors.
The procedure is passed a pointer to an _X_C_o_l_o_r structure
representing the background color. The _p_i_x_e_l, _r_e_d, _g_r_e_e_n,
and _b_l_u_e members of this structure are filled in with values
that are valid for the current colormap.
The procedure is passed pointers to _X_C_o_l_o_r structures
representing the foreground, select, top shadow, and bottom
shadow colors to be calculated. The procedure calculates
and fills in the _r_e_d, _g_r_e_e_n, and _b_l_u_e members of these
structures. The procedure should not allocate color cells
for any of these colors.
_b_a_c_k_g_r_o_u_n_d__c_o_l_o_r
Specifies the background color.
Page 1 (printed 10/24/98)
XXXXmmmmSSSSeeeettttCCCCoooolllloooorrrrCCCCaaaallllccccuuuullllaaaattttiiiioooonnnn((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmSSSSeeeettttCCCCoooolllloooorrrrCCCCaaaallllccccuuuullllaaaattttiiiioooonnnn((((3333XXXX))))
_f_o_r_e_g_r_o_u_n_d__c_o_l_o_r
Specifies the foreground color to be calculated.
_s_e_l_e_c_t__c_o_l_o_r
Specifies the select color to be calculated.
_t_o_p__s_h_a_d_o_w__c_o_l_o_r
Specifies the top shadow color to be calculated.
_b_o_t_t_o_m__s_h_a_d_o_w__c_o_l_o_r
Specifies the bottom shadow color to be
calculated.
RRRREEEETTTTUUUURRRRNNNN
Returns the color calculation procedure that was used at the
time this routine was called.
RRRREEEELLLLAAAATTTTEEEEDDDD
XXXXmmmmCCCChhhhaaaannnnggggeeeeCCCCoooolllloooorrrr(3), XXXXmmmmGGGGeeeettttCCCCoooolllloooorrrrssss(3), and
XXXXmmmmGGGGeeeettttCCCCoooolllloooorrrrCCCCaaaallllccccuuuullllaaaattttiiiioooonnnn(3).
Page 2 (printed 10/24/98)